add_executable(echoclient EchoClient.cpp ./pb/echo_service.pb.cc ../../include/gayrpc_option.pb.cc ../../include/meta.pb.cc)
if(WIN32)
  target_link_libraries(echoclient ws2_32 brynet)
elseif(UNIX)
  find_package(Threads REQUIRED)
  target_link_libraries(echoclient pthread brynet protobuf)
endif()

add_executable(echoserver EchoServer.cpp ./pb/echo_service.pb.cc ../../include/gayrpc_option.pb.cc ../../include/meta.pb.cc)
if(WIN32)
  target_link_libraries(echoserver ws2_32 brynet)
elseif(UNIX)
  find_package(Threads REQUIRED)
  target_link_libraries(echoserver pthread brynet protobuf)
endif()
